package com.example.mytests.config;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Getter
@Setter
public class MyList {

    @Qualifier//只获取被Qualifier标注的MyUser
    @Autowired
    private List<MyUser> myUsers;


}
